POWER PLUGIN
 

This plugin can be used to measure battery status and the current MHz on laptops. Note that not all laptops support this (or all the values).

PowerState

  • ACLINE - measures if the power is hooked to ac-line (0/1).
  • STATUS - measures the status of the battery (no battery, charging, critical, low, high).
  • STATUS2 - same as STATUS except that the BatteryFlag in SYSTEM_POWER_STATUS is returned as is.
  • LIFETIME - measures the lifetime of the battery.
  • PERCENT - measures percentual lifetime.
  • MHZ - measures the current CPU MHz.

Format
This is the same as in TIME-measure. It is used only when PowerState is LIFETIME.

 


Examples

[MeasureCPUMHz]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=MHZ